

#import <Foundation/Foundation.h>

@interface WBNetworking : NSObject

//声明一个 向服务器请求的 类方法
+ (void)GET:(NSString *)URLString
 parameters:(id)parameters
    success:(void (^)(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject))success
    failure:(void (^)(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error))failure;

//声明一个 向服务器上传的 类方法
+ (void)POST:(NSString *)URLString parameters:(id)parameters 
     success:(void (^)(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject))success
     failure:(void (^)(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error))failure;

//声明一个 向服务器上传的 类方法
+ (void)POST:(NSString *)URLString parameters:(id)parameters token:(NSString *)token
     success:(void (^)(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject))success
     failure:(void (^)(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error))failure;
@end
